let arr = [1,2,3,4,5]
arr.splice(0, 1)
console.log(arr.findIndex(item => item == 1))
arr.splice(0, 1)
console.log(arr);